package com.ziyun.pop.modules.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.goods.TwbVo.TwbGoodsListVo;
import com.ziyun.pop.modules.goods.TwbVo.TwbStateCollectVo;
import com.ziyun.pop.modules.goods.vo.GoodsInfoVo;
import com.ziyun.pop.modules.goods.vo.GoodsSalesVo;
import io.renren.common.utils.PageUtils;
import com.ziyun.pop.modules.goods.entity.GoodsEntity;
import io.renren.common.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 商品表
 *
 * @author llc
 * @email 787254039@qq.com
 * @date 2018-10-17 13:44:12
 */
public interface GoodsService extends IService<GoodsEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 从一个商家复制商品
     * @param sellerId 仅为商家
     * @param fromSellerId 仅为 紫云
     * @return
     */
    R copyGoods(Long sellerId, Long fromSellerId);

    /**
     * 同步商家 商品工艺价格，运费模板
     * @param sellerId
     * @param fromSellerId
     * @return
     */
    R copyGoodsCraftPriceTemplate(Long sellerId, Long fromSellerId);

    List<GoodsInfoVo> querySearchProduct(Map<String,Object> params);

    List<GoodsSalesVo> getGoodsSalesList(Long sellerId);

    TwbStateCollectVo getTwbGoodsStateCount(Long sellerId);

    List<GoodsEntity> twbHostGoods(Long sellerId);

    Page<TwbGoodsListVo> getTwbGoodsList(Map params);
}

